﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" Culture="th-TH" uiCulture="th" AutoEventWireup="true" CodeBehind="PS_TimeAttMonthly.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.PS_TimeAttMonthly" %>

<%@ Register src="../Controls/JobSiteCombo.ascx" tagname="JobSiteCombo" tagprefix="uc2" %>
<%@ Register src="../Controls/user.ascx" tagname="user" tagprefix="uc3" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">

    <div runat="server"> 
        <script type="text/javascript"> 
            function UseRadWindow1() {
                try {

                    var oWnd = $find("<%= windowAutoCalculateMonthly.ClientID %>");
                    oWnd.show();
                    var jobSiteSeq = getCmb('<%=cmbJobSite.ClientID %>');
                    var empTypeSeq = getCmb('<%=ddlEmployeeType.ClientID %>');
                    var thYear = getCmb('<%=cmbFilterYear.ClientID %>');
                    var month = getCmb('<%=ddlMonth.ClientID %>');
                    oWnd.setUrl("/App_UI/Forms/PS_TimeAttMonthlyCalculate.aspx?EmpTypeSeq=" + empTypeSeq + "&JobSiteSeq=" + jobSiteSeq + "&ThYear=" + thYear + "&Month=" + month);
                } catch(e) {
                    alert(e);
                }
            }
            function UseRadWindow2() {
                try {

                    var oWnd = $find("<%= windowAutoCalculateMonthly.ClientID %>");
                    oWnd.show();
                    var jobSiteSeq = getCmb('<%=cmbJobSite.ClientID %>');
                    var empTypeSeq = getCmb('<%=ddlEmployeeType.ClientID %>');
                    var thYear = getCmb('<%=cmbFilterYear.ClientID %>');
                    var month = getCmb('<%=ddlMonth.ClientID %>');
                    oWnd.setUrl("/App_UI/Forms/PS_TimeAttMonthlyCalculate.aspx?EmpTypeSeq=" + empTypeSeq + "&JobSiteSeq=" + jobSiteSeq + "&ThYear=" + thYear + "&Month=" + month);
                } catch (e) {
                    alert(e);
                }
            }
            
            function getCmb(clientId) {
                var obj = $find(clientId);
                if (obj.get_selectedItem() != null) {
                    return obj.get_selectedItem().get_value();
                } else {
                    return null;
                }
            }

            function isNumberKey(event)  // ตัวเลขอย่างเดียว
            {
                var charCode = (event.which) ? event.which : event.keyCode
                if (charCode > 31 && (charCode < 48 || charCode > 57)) {
                    //                 alert("กรอกได้แต่ตัวเลขครับ!")
                    return false;
                }
                return true;
            }

            function isNumberKeyDot(event)  // ตัวเลขทศนิยม
            {
                var charCode = (event.which) ? event.which : event.keyCode
                if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 46) {
                    //    alert("กรอกได้แต่ตัวเลขทศนิยมครับ!")
                    return false;
                }
                return true;
            }

        </script>
    </div> 
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
    <title>บันทึกวันลาแบบสรุปรายเดือน</title>

    <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
        <script type="text/javascript">
            function onTextChange(sender) {
                if (sender.get_value() == "") {
                    sender.set_text("");
                }
            }
            function month(ddlMonth) {
                var month = document.getElementById(ddlMonth);
                month.style.visibility = "visible";
            }
            function year(ddlMonth) {
                var month = document.getElementById(ddlMonth);
                month.style.visibility = "hidden";
            }

        </script>
    </telerik:RadCodeBlock>

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pnlRadGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlRadGrid" LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="PanelFilter">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelFilter" LoadingPanelID="RadAjaxLoadingPanel2" />
                    <telerik:AjaxUpdatedControl ControlID="pnlRadGrid" LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
            <telerik:RadWindow ID="windowAutoCalculateMonthly" runat="server" Height="500px" Style="display: none;" Width="1200px">
            </telerik:RadWindow>
        </Windows>

    </telerik:RadWindowManager>

    <div class="Background980V2" style="width: 980px; margin: 5px 0 5px 0">
        <asp:Panel ID="PanelFilter" runat="server" Width="100%">
            <asp:Panel ID="Panel2" runat="server" Width="100%">
                <table width="100%">
                    <tr>
                        <td align="right">&#160;ประเภท :</td>
                        <td>
                            <telerik:RadComboBox
                                ID="ddlEmployeeType" runat="server" AllowCustomText="true"
                                CausesValidation="false" DataTextField="Name"
                                DataValueField="Sequence" EmptyMessage="... เลือกประเภทบุคลากร ..."
                                Filter="Contains" OnClientTextChange="onTextChange" Width="200px" ZIndex="7000">
                            </telerik:RadComboBox>
                        </td>
                        <td align="right"><font face="">การลา</font> : </td>
                        <td>
                            <asp:RadioButton ID="rdoM" runat="server" Checked="True" GroupName="search" Text="รายเดือน" />
                            <asp:RadioButton ID="rdoY" runat="server" GroupName="search" Text="รายปี" />
                        </td>
                        <td>
                            <asp:Button ID="btnShow" runat="server" OnClick="btnShow_Click" Text="แสดง" />
                        </td>
                        <td>
                            <a href="javascript:UseRadWindow1();" class="LinkButton"
                                title="ใส่ข้อมูลการมาทำงานอัตโนมัติ ตามเวลาปกติ">
                                <img src="~/App_UI/Images/Buttons/Refresh.gif" title="ปรับปรุง" alt="ปรับปรุง" runat="server" />
                                ปรับปรุงสรุปข้อมูล<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; การมาทำงานอัตโนมัติ </a>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">สังกัด : </td>
                        <td>
                            <telerik:RadComboBox ID="cmbJobSite" runat="server" AllowCustomText="true" 
                                DataTextField="JOB_SITE_NAME" DataValueField="JOB_SITE_SEQ"
                                CausesValidation="false" EmptyMessage=".. พิมพ์ที่นี่เพื่อช่วยค้นหา .." 
                                Filter="Contains" Height="230px"
                                HighlightTemplatedItems="true" MarkFirstMatch="false" 
                                ShowDropDownOnTextboxClick="true" ShowMoreResultsBox="true" Width="200px"
                                ZIndex="7000">
                                <HeaderTemplate>
                                    <table cellpadding="0" cellspacing="0" width="150">
                                        <tr>
                                            <td align="center" width="150px">
                                                <b>ชื่อหน่วยงาน</b></td>
                                        </tr>
                                    </table>
                                </HeaderTemplate> 
                            </telerik:RadComboBox>
                        </td>
                        <td></td>
                        <td>
                            <telerik:RadComboBox ID="cmbFilterYear" runat="server"
                                CausesValidation="false" DataTextField="Name" DataValueField="Name"
                                Filter="Contains" OnClientTextChange="onTextChange" Width="100px" ZIndex="7000">
                            </telerik:RadComboBox>
                            <telerik:RadComboBox ID="ddlMonth" runat="server" Width="100px" ZIndex="9001">
                                <Items>
                                    <telerik:RadComboBoxItem runat="server" Text="มกราคม" Value="1" />
                                    <telerik:RadComboBoxItem runat="server" Text="กุมภาพันธ์" Value="2" />
                                    <telerik:RadComboBoxItem runat="server" Text="มีนาคม" Value="3" />
                                    <telerik:RadComboBoxItem runat="server" Text="เมษายน" Value="4" />
                                    <telerik:RadComboBoxItem runat="server" Text="พฤษภาคม" Value="5" />
                                    <telerik:RadComboBoxItem runat="server" Text="มิถุนายน" Value="6" />
                                    <telerik:RadComboBoxItem runat="server" Text="กรกฎาคม" Value="7" />
                                    <telerik:RadComboBoxItem runat="server" Text="สิงหาคม" Value="8" />
                                    <telerik:RadComboBoxItem runat="server" Text="กันยายน" Value="9" />
                                    <telerik:RadComboBoxItem runat="server" Text="ตุลาคม" Value="10" />
                                    <telerik:RadComboBoxItem runat="server" Text="พฤศจิกายน" Value="11" />
                                    <telerik:RadComboBoxItem runat="server" Text="ธันวาคม" Value="12" />
                                </Items>
                            </telerik:RadComboBox>
                        </td>
                        <td></td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </asp:Panel>
        </asp:Panel>
    </div>

    <div class="Background980V2" style="width: 980px;">
        <table align="center" width="100%">
            <tr>
                <td align="left" class="tableHeader">ข้อมูลวันลาแบบสรุปรายเดือน </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="pnlRadGrid" runat="server" ScrollBars="Auto" Width="975px" Style="min-height: 350px">
                        <telerik:RadGrid ID="RadGrid2" runat="server" AllowAutomaticDeletes="True" AllowFilteringByColumn="True" 
                            AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" 
                            AutoGenerateColumns="False" CellSpacing="0" EnableAJAX="True" EnableAJAXLoadingTemplate="True" 
                            GridLines="None" OnItemCommand="RadGrid2_ItemCommand" Skin="Outlook" PageSize="100">
                            <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" CommandItemDisplay="Top" 
                                DataKeyNames="TimeAttMonthId" InsertItemPageIndexAction="ShowItemOnCurrentPage" NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                                <CommandItemTemplate>
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                <asp:LinkButton ID="cmdAddNew" runat="server" CausesValidation="False" 
                                                    CommandName="InitInsert" 
                                                    Visible="<%# !RadGrid2.MasterTableView.IsItemInserted && RadGrid2.EditIndexes.Count <= 0 %>">
                                                     <img alt="" src="../Images/Buttons/AddRecord.gif" style="border:0px;vertical-align:middle;" /> เพิ่มข้อมูลใหม่
                                                </asp:LinkButton>
                                                &nbsp;&nbsp; </td>
                                            <td align="right"></td>
                                        </tr>
                                    </table>
                                </CommandItemTemplate>
                                <CommandItemSettings ExportToPdfText="Export to PDF" />
                                <RowIndicatorColumn>
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="15"><ItemStyle Width="15px" />
                                    </telerik:GridEditCommandColumn>
                                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="ลบข้อมูลที่เลือก?" ItemStyle-Width="15" Text="คลิกเพื่อลบรายการนี้" UniqueName="clDel"><ItemStyle Width="15px" />
                                    </telerik:GridButtonColumn> 
                                    <telerik:GridBoundColumn DataField="WorkingYear" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="ปี" UniqueName="WorkingYear" Visible="True" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="WorkingMonth" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="เดือน" UniqueName="WorkingMonth" Visible="True" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="TimeAttMonthId" Visible="False" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="TimeAttMonthId" UniqueName="TimeAttMonthId" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="EmpId" Visible="False" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="EmpId" UniqueName="EmpId" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="EmpFullName" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="ชื่อ-นามสกุล" UniqueName="EmpFullName" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="EmpPosRefNo" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="เลขที่ตำแหน่ง" UniqueName="EmpPosRefNo" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="EmpPosName" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="ตำแหน่ง" UniqueName="EmpPosName" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="EmpClass" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="ระดับ" UniqueName="EmpClass" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="PlanWorkingDayCount" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="วันต้องปฎิบัติงาน" UniqueName="PlanWorkingDayCount" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ActualWorkingDayCount" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="มาปฎิบัติงาน" UniqueName="ActualWorkingDayCount" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="NotWorkingDayCount" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="ขาดงาน" UniqueName="NotWorkingDayCount" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="LateDayCount" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="สาย" UniqueName="LateDayCount" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ValidAbsenceDayCount" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="ลา" UniqueName="ValidAbsenceDayCount" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="InvalidAbsenceDayCount" Visible="False" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="วันลาที่ไม่ถูกต้อง" UniqueName="InvalidAbsenceDayCount" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Remarks"  FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="หมายเหตุ" UniqueName="Remarks" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="RecordStatus" Visible="False" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center"  HeaderText="RecordStatus" UniqueName="RecordStatus" ShowFilterIcon="false">
                                    </telerik:GridBoundColumn> 
                                </Columns>
                                <EditFormSettings EditFormType="WebUserControl" UserControlName="../UserControls/PS_TimeAttMonthly2.ascx">
                                    <EditColumn UniqueName="EditCommandColumn1">
                                    </EditColumn>
                                </EditFormSettings>
                                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                            </MasterTableView>
                            <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                                <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                            </ClientSettings>
                            <FilterMenu EnableImageSprites="False">
                            </FilterMenu>
                        </telerik:RadGrid>
                        <br />
                        <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowFilteringByColumn="True" AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0" EnableAJAX="True" EnableAJAXLoadingTemplate="True" GridLines="None" OnItemCommand="RadGrid1_ItemCommand" Skin="Outlook" Visible="False">
                            <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" CommandItemDisplay="Top" DataKeyNames="time_att_month_seq" InsertItemPageIndexAction="ShowItemOnCurrentPage" NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                                <CommandItemTemplate>
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                <asp:LinkButton ID="cmdAddNew" runat="server" CausesValidation="False" CommandName="InitInsert" Visible="<%# !RadGrid1.MasterTableView.IsItemInserted && RadGrid1.EditIndexes.Count <= 0 %>"> <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                        style="border:0px;vertical-align:middle;" /> เพิ่มข้อมูลใหม่</asp:LinkButton>
                                                &nbsp;&nbsp; </td>
                                            <td align="right"></td>
                                        </tr>
                                    </table>
                                </CommandItemTemplate>
                                <CommandItemSettings ExportToPdfText="Export to PDF" />
                                <RowIndicatorColumn>
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="15">
                                        <ItemStyle Width="15px" />
                                    </telerik:GridEditCommandColumn>
                                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="ลบข้อมูลที่เลือก?" ItemStyle-Width="15" Text="คลิกเพื่อลบรายการนี้" UniqueName="column1">
                                        <ItemStyle Width="15px" />
                                    </telerik:GridButtonColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="working_year" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" HeaderText="ปี " ShowFilterIcon="false" UniqueName="working_year" Visible="false">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="month_name" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" HeaderText="เดือน " ShowFilterIcon="false" UniqueName="month_name" Visible="false">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="emp_name" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" HeaderText="ชื่อ - นามสกุล" ShowFilterIcon="false" UniqueName="emp_name">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle Wrap="false" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="pos_ref" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" HeaderText="เลขที่ตำแหน่ง" ShowFilterIcon="false" UniqueName="pos_ref">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="pos_name" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" HeaderText="ตำแหน่ง" ShowFilterIcon="false" UniqueName="pos_name">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle Wrap="false" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="class_name" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" HeaderText="ระดับ" ShowFilterIcon="false" UniqueName="class_name">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle Wrap="false" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="plan_working_day_count" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวนวัน&lt;br&gt;ที่ปฎิบัติงาน" ShowFilterIcon="false" UniqueName="plan_working_day_count">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="actual_working_day_count" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวนวัน&lt;br&gt;ที่ปฎิบัติงาน(จริง)" ShowFilterIcon="false" UniqueName="actual_working_day_count">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="quota_vacation" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Center" HeaderText="สิทธิ์ในการ&lt;br&gt;ลาพักผ่อน(วัน)" ShowFilterIcon="false" UniqueName="quota_vacation">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="vacation_day_count" HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวนวัน&lt;br&gt;ลาพักผ่อน" ShowFilterIcon="false" UniqueName="vacation_day_count">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="late_day_count" HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวนวัน&lt;br&gt;มาสาย" ShowFilterIcon="false" UniqueName="late_day_count">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="sick_day_count" HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวนวัน&lt;br&gt;ลาป่วย" ShowFilterIcon="false" UniqueName="sick_day_count">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="sick_count" HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวนครั้ง&lt;br&gt;ลาป่วย" ShowFilterIcon="false" UniqueName="sick_count">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="private_day_count" HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวนวัน&lt;br&gt;ลากิจ" ShowFilterIcon="false" UniqueName="private_day_count">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="deliver_day_count" HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวนวัน&lt;br&gt;ลาคลอด" ShowFilterIcon="false" UniqueName="deliver_day_count">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="edu_day_count" HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวนวัน&lt;br&gt;ลาศึกษา" ShowFilterIcon="false" UniqueName="edu_day_count">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ordain_day_count" HeaderStyle-HorizontalAlign="Center" HeaderText="จำนวนวัน&lt;br&gt;ลาบวช" ShowFilterIcon="false" UniqueName="ordain_day_count">
                                        <HeaderStyle HorizontalAlign="Center" Wrap="false" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                </Columns>
                                <EditFormSettings EditFormType="WebUserControl" UserControlName="../UserControls/PS_TimeAttMonthly.ascx">
                                    <EditColumn UniqueName="EditCommandColumn1">
                                    </EditColumn>
                                </EditFormSettings>
                                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                            </MasterTableView>
                            <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                                <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                            </ClientSettings>
                            <FilterMenu EnableImageSprites="False">
                            </FilterMenu>
                        </telerik:RadGrid>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
